package com.btex.app.entity;

import java.util.List;

/**
 * @author zy zhangyi <zhangyi, 1104745049@QQ.com
 * @version v1.0
 * @project study1
 * @Description
 * @encoding UTF-8
 * @date 2018/10/18
 * @time 上午11:02
 * @修改记录 <pre>
 * 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 * </pre>
 */

public class UnwindInfo {

    /**
     * code : 1
     * data : {"position_lists":[{"position_id":"4","user_id":"100003","contract_id":"1","contract_symbol":"BTC","direction":"1","amount":"0","liquidation_price":"-1.00000000","rlz_pnl":"0.00000000","unrlz_pnl":"0.00000000","margin":"0.00000000","p_leverage":"0.00000000","ctime":1539826758,"pst_status":"1","leverage":"0.00000000","price":"0.00000000","delta_margin":"0.00000000","symbol":"BTCUSD"}],"data_hash":"114cbf25a306b9b6cc6e1339c72c3956"}
     * info :
     */

    private int code;
    private DataBean data;
    private String info;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public static class DataBean {
        /**
         * position_lists : [{"position_id":"4","user_id":"100003","contract_id":"1","contract_symbol":"BTC","direction":"1","amount":"0","liquidation_price":"-1.00000000","rlz_pnl":"0.00000000","unrlz_pnl":"0.00000000","margin":"0.00000000","p_leverage":"0.00000000","ctime":1539826758,"pst_status":"1","leverage":"0.00000000","price":"0.00000000","delta_margin":"0.00000000","symbol":"BTCUSD"}]
         * data_hash : 114cbf25a306b9b6cc6e1339c72c3956
         */

        private String data_hash;
        private List<PositionListsBean> position_lists;

        public String getData_hash() {
            return data_hash;
        }

        public void setData_hash(String data_hash) {
            this.data_hash = data_hash;
        }

        public List<PositionListsBean> getPosition_lists() {
            return position_lists;
        }

        public void setPosition_lists(List<PositionListsBean> position_lists) {
            this.position_lists = position_lists;
        }

        public static class PositionListsBean {
            /**
             * position_id : 4
             * user_id : 100003
             * contract_id : 1
             * contract_symbol : BTC
             * direction : 1
             * amount : 0
             * liquidation_price : -1.00000000
             * rlz_pnl : 0.00000000
             * unrlz_pnl : 0.00000000
             * margin : 0.00000000
             * p_leverage : 0.00000000
             * ctime : 1539826758
             * pst_status : 1
             * leverage : 0.00000000
             * price : 0.00000000
             * delta_margin : 0.00000000
             * symbol : BTCUSD
             */

            private String position_id;
            private String user_id;
            private String contract_id;
            private String contract_symbol;
            private String direction;
            private String amount;
            private String liquidation_price;
            private String rlz_pnl;
            private String unrlz_pnl;
            private String margin;
            private String p_leverage;
            private int ctime;
            private String pst_status;
            private String leverage;
            private String price;
            private String delta_margin;
            private String symbol;
            private String is_reverse;

            public String getSettle_anchor() {
                return settle_anchor;
            }

            public void setSettle_anchor(String settle_anchor) {
                this.settle_anchor = settle_anchor;
            }

            private String settle_anchor;

            public String getIs_cross() {
                return is_cross;
            }

            public void setIs_cross(String is_cross) {
                this.is_cross = is_cross;
            }

            private String is_cross;

            public String getIs_reverse() {
                return is_reverse;
            }

            public void setIs_reverse(String is_reverse) {
                this.is_reverse = is_reverse;
            }

            public String getPosition_id() {
                return position_id;
            }

            public void setPosition_id(String position_id) {
                this.position_id = position_id;
            }

            public String getUser_id() {
                return user_id;
            }

            public void setUser_id(String user_id) {
                this.user_id = user_id;
            }

            public String getContract_id() {
                return contract_id;
            }

            public void setContract_id(String contract_id) {
                this.contract_id = contract_id;
            }

            public String getContract_symbol() {
                return contract_symbol;
            }

            public void setContract_symbol(String contract_symbol) {
                this.contract_symbol = contract_symbol;
            }

            public String getDirection() {
                return direction;
            }

            public void setDirection(String direction) {
                this.direction = direction;
            }

            public String getAmount() {
                return amount;
            }

            public void setAmount(String amount) {
                this.amount = amount;
            }

            public String getLiquidation_price() {
                return liquidation_price;
            }

            public void setLiquidation_price(String liquidation_price) {
                this.liquidation_price = liquidation_price;
            }

            public String getRlz_pnl() {
                return rlz_pnl;
            }

            public void setRlz_pnl(String rlz_pnl) {
                this.rlz_pnl = rlz_pnl;
            }

            public String getUnrlz_pnl() {
                return unrlz_pnl;
            }

            public void setUnrlz_pnl(String unrlz_pnl) {
                this.unrlz_pnl = unrlz_pnl;
            }

            public String getMargin() {
                return margin;
            }

            public void setMargin(String margin) {
                this.margin = margin;
            }

            public String getP_leverage() {
                return p_leverage;
            }

            public void setP_leverage(String p_leverage) {
                this.p_leverage = p_leverage;
            }

            public int getCtime() {
                return ctime;
            }

            public void setCtime(int ctime) {
                this.ctime = ctime;
            }

            public String getPst_status() {
                return pst_status;
            }

            public void setPst_status(String pst_status) {
                this.pst_status = pst_status;
            }

            public String getLeverage() {
                return leverage;
            }

            public void setLeverage(String leverage) {
                this.leverage = leverage;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getDelta_margin() {
                return delta_margin;
            }

            public void setDelta_margin(String delta_margin) {
                this.delta_margin = delta_margin;
            }

            public String getSymbol() {
                return symbol;
            }

            public void setSymbol(String symbol) {
                this.symbol = symbol;
            }
        }
    }
}
